package com.woniuxy.micromedicalserver.departmentmanage.service.impl;

import com.woniuxy.micromedicalserver.bean.DepartmentBean;
import com.woniuxy.micromedicalserver.departmentmanage.mapper.DepartmentMapper;
import com.woniuxy.micromedicalserver.departmentmanage.service.IDepartmentService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


@Service
@Transactional(readOnly = true)
public class DepartmentServiceImpl implements IDepartmentService {
    @Resource
    private DepartmentMapper departmentMapperImpl;

    @Override
    public DepartmentBean selectByID(Integer ID) {
        return departmentMapperImpl.selectByID(ID);
    }

    @Override
    public List<DepartmentBean> selectAllDepartment(DepartmentBean departmentBean) {
        return departmentMapperImpl.selectAllDepartment(departmentBean);
    }
}
